Skip to content

Update to Storybook 9#3053

Merged
bashmish merged 29 commits intomasterfrom
feat/storybook9
Apr 13, 2026
Merged

Update to Storybook 9#3053
bashmish merged 29 commits intomasterfrom
feat/storybook9

Conversation

@bashmish
Copy link
Copy Markdown
Member

@bashmish bashmish commented Mar 26, 2026

What I did

  1. Migrated all projects to Storybook 9
  2. Had to introduce a new major for @web/mocks, because there was a choice of either just migration it to Storybook 9 or decoupling from Storybook., both required a major update, so I went into the 2nd approach
  3. As a result of 2, new addon was added @web/storybook-addon-mocks

thanks to @GuiAmPm for his contribution in #3039

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Mar 26, 2026

🦋 Changeset detected

Latest commit: 2c63cde

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 5 packages
Name Type
@web/mocks Major
@web/storybook-addon-mocks Major
@web/storybook-builder Minor
@web/storybook-framework-web-components Minor
@web/storybook-utils Major

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@bashmish bashmish marked this pull request as draft March 28, 2026 19:41
@bashmish bashmish marked this pull request as ready for review April 9, 2026 15:48
Comment thread packages/mocks/MIGRATION.md
Comment thread packages/mocks/package.json
Comment thread packages/mocks/README.md

```js
mockRollupPlugin({
interceptor: `
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how do we handle interceptor stuff now? e.g. for ING?

Copy link
Copy Markdown
Member Author

@bashmish bashmish Apr 13, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

my analyses indicated that it wasn't really used
people did import some interceptors, but they were not needed

in general both in and outside of Storybook there are easy ways to include arbitrary code to the index.html, I mean this is a convenience API, but there is a lot of other options how to achieve the same, so I think this API wasn't in the right place

},
) {
return {
name: 'rollup-plugin-msw',
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so the outputting of the service worker (and loading the sw) is now handled by the storybook addon?

Copy link
Copy Markdown
Member Author

@bashmish bashmish Apr 13, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

correct, in practice it was only used by Storybook
also I found this rollup plugin hard to reuse, e.g. in our app it wasn't usable due to the <base href="/different-base">, so I think it's best to remove this plugin anyway.

@bashmish bashmish merged commit c78ff49 into master Apr 13, 2026
7 of 9 checks passed
@bashmish bashmish deleted the feat/storybook9 branch April 13, 2026 14:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants